package com.lzh.webFeign;

import com.lzh.fallback.OrderApiClientFallBack;
import com.lzh.info.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

//name = 你要调用的服务名，看你要调用的服务的yml文件
//fallback = 你要用的服务降级后的逻辑
@FeignClient(name = "lzh-order", fallback = OrderApiClientFallBack.class)
public interface OrderFeignClient {

    @RequestMapping("/order/add")//调用的路由
    public String add(OrderInfo orderInfo);
}
